<?php
/**

 * @author oophp
 */
class DBConn {
    static private $_obj = null;
    private $_dbConn = null;
    private $_conn = "mysql:host=localhost;dbname=201php";
    private $_usr = 'root';
    private $_pwd = '';
    private function __construct(){
        try{
            $this->_dbConn = new PDO($this->_conn ,$this->_usr,$this->_pwd);
        }  catch (Exception $ex){
            die('FOUT: databaseverbinding mislukt ...');
        }
    }
    static public function GET(){
        if(!(self::$_obj instanceof self)){
            self::$_obj=new self();
        }
        return self::$_obj->_dbConn;
    }
}

?>
